package hcn.protocol.ods.diagnosis;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Author: xinggj  sixtynine@live.cn
 * Date: 2016/9/28 14:08
 * Description:
 */
@XmlRootElement(name = "checkRefundConditionRequest")
public class CheckRefundConditionRequestBean {
    private String orgId;
    private String patientId;
    private String precalId;
    private List<PrecalculatedFeeRecordBean> feeRecords;

    @XmlElement
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    @XmlElement
    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }
    @XmlElement
    public String getPrecalId() {
        return precalId;
    }

    public void setPrecalId(String precalId) {
        this.precalId = precalId;
    }

    @XmlElementWrapper(name = "feeRecords")
    @XmlElement(name = "feeRecord")
    public List<PrecalculatedFeeRecordBean> getFeeRecords() {
        return feeRecords;
    }

    public void setFeeRecords(List<PrecalculatedFeeRecordBean> feeRecords) {
        this.feeRecords = feeRecords;
    }

    public void addFeeRecord(PrecalculatedFeeRecordBean feeRecordBean) {
        if (feeRecords == null) {
            feeRecords = new ArrayList<PrecalculatedFeeRecordBean>();
        }
        this.feeRecords.add(feeRecordBean);
    }
}
